<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if (sizeof($pages) > 0) {
	foreach ($pages as $page) {
		echo "<div class='one-faq br-10'>";
			echo "<h2><a href='#' class='ajax faq-open' rel='".$page['faq_id']."'>".$page['faq_title']."</a></h2>";
			echo "<div class='faq-text hidden' id='faq-".$page['faq_id']."'>";
				echo htmlspecialchars($page['faq_text']);
				if ($page['faq_answer'] != "") {
					echo "<hr size='1' />";
					echo htmlspecialchars($page['faq_answer']);
				}
			echo "</div>";
		echo "</div>";
	}
}
echo $form;
echo $js;
?>